import Vue from 'vue'
import App from './App'

import uView from "uview-ui";
Vue.use(uView);


Vue.config.productionTip = false

App.mpType = 'app'

//自定义全局方法
import MyPlugin from '@/tools/myPlugin'
Vue.use(MyPlugin);

//全局分享
import share from './mixins/share.js'
Vue.mixin(share)

import floatCount from './mixins/floatCount.js'

import config from '@/config/index.js';
Vue.prototype.$config = config;

import moment from "moment"

// 全局过滤
import filters from './filters/index.js'
// 注册全局实用过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
const app = new Vue({
	...App
})

import http from '@/api/interApi.js'; //请求拦截器
Vue.use(http, app);
import api from '@/api/api.js'; //接口集中管理
Vue.use(api, app);

app.$mount()